import type { reComment } from '../model/re_comment'
import http from '../utils/http'

//获取到评论
export const getComment=(recipeId:string):Promise<reComment[]>=>{
	return http.get('/classes/Comment',{
		params:{
			where:{recipeId:recipeId},
			include:'userId'
		}
	}).then(res => res.data.results) 
}